package filesOperation;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;



public class FilesWork {

    public static void createFile(String firstLine, String secondLine, String thirdLine, String filename) {

        File file = new File(filename);
        FileWriter writer = null;
        try {
            writer = new FileWriter(file, true);
        } catch (IOException e) {
            e.printStackTrace();
        }
        PrintWriter output = new PrintWriter(writer);
        output.println(firstLine);
        output.println(secondLine);
        output.println(thirdLine);
        output.close();

    }



}
